﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
using System.Windows.Data;

namespace DienLib.PopUp
{
    internal class RegImageConverter : IValueConverter
    {
        public object Convert(object o, Type type, object parameter, CultureInfo culture)
        {
            if (o is System.Reflection.PropertyInfo)
            {
                if (((RegValue)o).Kind == Microsoft.Win32.RegistryValueKind.String)
                    return "dataString.png";
                else
                    return "data.png";
            }
            else
                return "folder.png";
        }


        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
